package org.jeecg.modules.pos.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import com.sun.org.apache.xpath.internal.operations.Bool;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: pos_table
 * @Author: jeecg-boot
 * @Date:   2023-04-11
 * @Version: V1.0
 */
@Data
@TableName("pos_table")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="pos_table对象", description="pos_table")
public class PosTable implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
	/**关联租户*/
	@Excel(name = "关联租户", width = 15)
    @ApiModelProperty(value = "关联租户")
    private java.lang.String tenantId;
	/**关联酒店*/
	@Excel(name = "关联酒店", width = 15)
    @ApiModelProperty(value = "关联酒店")
    private java.lang.String hotelId;
	/**餐桌名称*/
	@Excel(name = "餐桌名称", width = 15)
    @ApiModelProperty(value = "餐桌名称")
    private java.lang.String name;
	/**pos类型id*/
	@Excel(name = "pos类型id", width = 15)
    @ApiModelProperty(value = "pos类型id")
    private java.lang.String posTypeId;
	/**pos桌型id*/
	@Excel(name = "pos桌型id", width = 15)
    @ApiModelProperty(value = "pos桌型id")
    private java.lang.String posTableTypeId;
	/**pos餐桌区域id*/
	@Excel(name = "pos餐桌区域id", width = 15)
    @ApiModelProperty(value = "pos餐桌区域id")
    private java.lang.String posRegionId;
	/**座位数*/
	@Excel(name = "座位数", width = 15)
    @ApiModelProperty(value = "座位数")
    private java.lang.Integer num;
	/**餐桌序号*/
	@Excel(name = "餐桌序号", width = 15)
    @ApiModelProperty(value = "餐桌序号")
    private java.lang.String tableNo;
	/**状态*/
	@Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态 0空桌，1待下单，2待结账，3已预结，4待清台")
    private java.lang.Integer state;
    /**下单时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "下单时间")
    private Date orderTime;
    /**就餐人数*/
    @Excel(name = "就餐人数", width = 15)
    @ApiModelProperty(value = "就餐人数")
    private java.lang.Integer userNum;
    /**二维码*/
    @Excel(name = "二维码", width = 15)
    @ApiModelProperty(value = "二维码")
    private java.lang.String qrCode;

	@TableField(exist = false)
	private  String typeName;

    @TableField(exist = false)
    private  String regionName;

    @TableField(exist = false)
    private  String tableTypeName;

    /**今日有预约*/
    @TableField(exist = false)
    private Boolean isBooking;

    @TableField(exist = false)
    private  PosOrderGoods posOrderGoods;
}
